//文件下载
var v_script_id = 'dnloadfile';
//脚本状态,0:该脚本不许执行，1:该脚本可以执行
var v_status = '1';

//脚本逻辑写在run语句之间
if (run){
	//var user = action.getSession().getAttribute("user");
	//var checkids = action.form.getString('ids');
	//var arr_ids = checkids.split(',');
	action.vars.put(action.HANDY_ACTION_RESPONSE,'1');
	/*
	for(i=0; i<arr_ids.length; i++){
		var sql = "select filepath from h_file_upload where id=" + arr_ids[i]; 
		var path = action.dbUtil.getSampleStringValue('',sql);
		println(path);
		action.download('D:/workspaces/handy_application/WebRoot/fileupload/2/110117141011913.ftl');
	}
	*/
	action.download('D:/workspaces/handy_application/WebRoot/fileupload/2/110117141005547.zip');
	
}
	 
